<?php


namespace App\Http\Controllers\Mp;


use App\Http\Controllers\Controller;
use App\Model\Article;
use App\Utils\Result;
use Illuminate\Http\Request;

class ArticleController extends Controller
{
    public function detail(Request $request)
    {
        $key = $request->input('article_key');
        $res = Article::query()->where('article_key', $key)->first();

        return Result::success($res);
    }
}
